package com.wdd.owntool.ui.mvp

import android.view.View
import com.wdd.libbase.base.BaseMvpFragment
import com.wdd.owntool.R
import com.wdd.owntool.ui.mvp.presenter.MvpPresenter
import com.wdd.tools.mvp.contract.MvpContract
import kotlinx.android.synthetic.main.fragment_mvp.*

/**
 *
 * @ProjectName:    OwnTool
 * @Package:        com.wdd.owntool.ui.mvp
 * @ClassName:      MvpFragment
 * @Description:     java类作用描述
 * @Author:         王丹丹
 * @CreateDate:     2019/12/10 19:06
 * @UpdateUser:     更新者
 * @UpdateDate:     2019/12/10 19:06
 * @UpdateRemark:   更新说明
 * @Version:        1.0
 */
class MvpFragment : BaseMvpFragment<MvpPresenter>(), MvpContract.View {


    override fun getLayoutId(): Int {
        return R.layout.fragment_mvp
    }

    override fun initView(rootView: View?) {
    }

    override fun initData() {
        mPresenter.obtainBaidu()
    }


    override fun showBaidu(content: String?) {
        data.text = content
    }
}